PHP Variable Variable inside []'s

Posted by Homer_J on Stack Overflow See other posts from Stack Overflow or by Homer_J
Published on 2010-04-24T15:03:01Z Indexed on 2010/04/24 15:13 UTC
Read the original article Hit count: 156

Filed under:

Hi all,

I hope there is a simple solution!

I have a variable:

$results['q1'];

Is it possible to have the 'q1' element as a variable, something like this:

$results['$i[question]'];

Have not been able to find a solution on Google and researching the PHP manuals...

Anyone got a suggestion/ solution?

Thanks,

Homer.

© Stack Overflow or respective owner

Related posts about php